package com.liang.bigdecimal;

import java.math.BigInteger;

public class BigIntegerDemo {

    public static void main(String[] args) {

        //大整数的计算
        BigInteger big1 = new BigInteger("9999999999999999999999999999");
        BigInteger big2 = new BigInteger("1");

        System.out.println(big1.add(big2));
        System.out.println(big1.subtract(big2));
        System.out.println(big1.multiply(big2));
        System.out.println(big1.divide(big2));
    }
}
